<%-- 
    Document   : specialMCQ
    Created on : 16/08/2011, 12:48:35 PM
    Author     : Lewis Kelly
--%>
<script language="javascript">
    var thing;
    var temp;
    var qqtype;
    
    function chooseType(){
        thing = document.MCQuestion.MCChart.value;
        temp = document.getElementById('hello').value;
        var type = document.getElementByID
        
        if (thing != "|---Select---|"){
            
            window.location = "addSpecMCQ.html?pid="+temp+"&type="+qqtype;
        }
        
        //       alert(thing);
    }
    
    function setVar(vvar){
        qqtype = vvar
    }
    
</script>

<%@ include file="../header.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" type="text/css" href="../style.css"/>
<div id="content-container1">
    <div id="content">
        <!-- Content goes here -->
        <h3>Choose Question Type</h3>
        
        <form:form method="post" commandName="specialMCQ" name="specialMCQ" id="spec">
            <%Object temps = request.getParameter("pid");%>
             <span hidden="true">
            <form:input path='pollID' type='text' value='<%=temps%>' id="hello"/>
             </span>
        </form:form>
        
        <form id="MCQuestion" name='MCQuestion' method="POST">
            <select name="MCChart" id="MCChart" onChange="chooseType()">
                <option id="selected">|- - - Select - - -|</option>
                <option id="demographic" onMouseDown="setVar(1)">Demographic</option>
                <option id="comparative" onMouseDown="setVar(2)">Comparative</option>
                <option id="ranking" onMouseDown="setVar(3)">Ranking</option>
            </select>
        </form>
         
         
        <p> <input type="button" value="Back" onClick="javascript: history.go(-1)"></p>

    </div>
    
    <%@ include file="../footer.jsp" %>
    




